package patternmining.model.construction;

import patternmining.model.graph.EdgeType;

/**Container class.
 * Instances encapsulate the data extracted from a source that describe one atom, that is one predicate and its two arguments
 * @version 1.0, 09.05.2008
 * @author Holger Wiehen
 */
class AtomData {

    private int sourceLine;
    private int sourceColumn;
    private EdgeType type;
    private String origin;
    private String destination;

    public AtomData(int sourceLine, int sourceColumn, BPSLPredicateType type, String origin, String destination) {
        this.sourceLine = sourceLine;
        this.sourceColumn = sourceColumn;
        this.type = TypeMatcher.predicateTypeToEdgeType(type);
        this.origin = origin;
        this.destination = destination;
    }

    public String destination() {
        return destination;
    }

    public String origin() {
        return origin;
    }

    public int sourceColumn() {
        return sourceColumn;
    }

    public int sourceLine() {
        return sourceLine;
    }

    public EdgeType type() {
        return type;
    }
    
   
    
}
